import {applyMiddleware, combineReducers, createStore} from 'redux'

import thunk from 'redux-thunk'
import {composeWithDevTools} from 'redux-devtools-extension'

import login from './modules/login'
import home from './modules/home'
import cate from './modules/cate'
import shop from './modules/shop'
import mine from './modules/mine'
import detail from './modules/detail'
import youhui from './modules/youhui'
let reducer =combineReducers({
    login,
    home,
    cate,
    shop,
    mine,
    detail,
    youhui
})

let store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))

export default store;